<?php

namespace App;
use App\Model;

class Contact extends Model
{
   // use Notifiable;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */

//   protected $fillable = [
//        'id','source', 'company_name','position','gender','phone','email','address','contact_time','remark','user_id'
//    ];
    protected $guarded=[];
    /*public function type(){ //获取所有分类
        return $this->hasMany('App\ProductType','type_id','id');
    }*/
    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    public function user_name(){
        return $this->hasOne('App\AdminUser','id','user_id');
    }
}
